home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-09-25 | 972 b | 32 lines |
- package java.awt;
-
- public interface SymantecEventHook {
- final static class Manager {
- /**
- * currently only one Hook is supported
- */
- static SymantecEventHook theHook=null;
- static public void registerHook(SymantecEventHook h) {
- theHook = h;
- }
- static public void unregisterHook(SymantecEventHook h) {
- if (theHook == h)
- theHook = null;
- }
- static public void beforeEvent(AWTEvent ev) {
- if (theHook!=null)
- try {
- theHook.beforeEvent(ev);
- } catch(Exception e) {}
- }
- static public void afterEvent(AWTEvent ev) {
- if (theHook!=null)
- try {
- theHook.afterEvent(ev);
- } catch(Exception e) {}
- }
- };
- public void beforeEvent(AWTEvent e);
- public void afterEvent(AWTEvent e);
- };
-